import {
  createRouter,
  // createWebHistory,
  createWebHashHistory,
} from "vue-router";
import LayoutView from "../views/LayoutView/LayoutView.vue";
import LoginView from "../views/LoginView/LoginView.vue";

const router = createRouter({
  // history: createWebHistory(import.meta.env.BASE_URL),
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      redirect: "/home",
    },
    {
      path: "/",
      name: "layout",
      component: LayoutView,
    },

    {
      path: "/login",
      name: "login",
      component: LoginView,
    },
    {
      path: "/notfound",
      name: "notfound",
      component: () => import("../views/NotFound/NotFound.vue"),
    },
  ],
});

export default router;
